package com.mmall.service;

import com.baomidou.mybatisplus.service.IService;
import com.mmall.common.ServerResponse;
import com.mmall.pojo.User;

/**
 * Created by hanchao on 2018/1/9.
 */
public interface IUserService extends IService<User>{

    ServerResponse login(String username,String password);
    ServerResponse<String> register(User user);
    ServerResponse<String> checkValid(String str,String type);
    ServerResponse<String> selectQuestion(String username);
    ServerResponse<String> forgetCheckAnswer(String username,String question,String answer);
    ServerResponse<String> forgetRestPasswored(String username,String passwordNew,String forgetToken);
    ServerResponse<String> resetPassword(String passwordOld,String passwordNew,User user);
    ServerResponse<User> updateInfomation(User user);
    ServerResponse<User> getInfomation(Integer userId);
    ServerResponse checkAdminRole(User user);
}
